<template>
  <div class="layout">
    <div class="content">
      <router-view></router-view>
    </div>
    <div class="nav">
      <router-link to="/article">面经</router-link>
      <router-link to="/collect">收藏</router-link>
      <router-link to="/like">喜欢</router-link>
      <router-link to="/user">我的</router-link>
    </div>
  </div>
</template>
<script >

export default {
  name:'layout',
  data() {
    return {};
  },
  props: [],
  components: {},
  created() {},
  mounted() {},
  methods: {},
};
</script>
<style lang='less' scoped>
.layout {
  .content {
    margin-bottom: 51px;
  }
  .nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    text-align: center;
    line-height: 50px;
    display: flex;
    border-top: 1px solid #e4e4e4;
    background-color: #fff;
    a {
      font-size: 14px;
      flex: 1;
      text-decoration: none;
      color: rgb(186, 186, 186);
    }
  }
  .active {
    background-color: rgb(122, 170, 208);
  }
}
</style>